import 'package:safetymonitor/generated/json/base/json_field.dart';
import 'package:safetymonitor/generated/json/day_info_list_entity.g.dart';
import 'dart:convert';
export 'package:safetymonitor/generated/json/day_info_list_entity.g.dart';

@JsonSerializable()
class DayInfoListEntity {
	List<DayInfoListPlanInfo>? planInfo = [];
	String? dutyDate = '';

	DayInfoListEntity();

	factory DayInfoListEntity.fromJson(Map<String, dynamic> json) => $DayInfoListEntityFromJson(json);

	Map<String, dynamic> toJson() => $DayInfoListEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class DayInfoListPlanInfo {
	int? createTime = 0;
	int? updateTime = 0;
	String? creator = '';
	String? updater = '';
	bool? deleted = false;
	int? id = 0;
	int? companyId = 0;
	String? companyName = '';
	int? scheduleConfigId = 0;
	String? scheduleName = '';
	int? dutyStartDate = 0;
	int? dutyEndDate = 0;
	int? dutyPersonId = 0;
	String? dutyPerson = '';
	String? dutyPersonPhone = '';
	dynamic personScheduleType;
	String? personScheduleTypeCode = '';
	int? dutyLeaderId;
	String? dutyLeader = '';
	String? dutyLeaderPhone = '';
	dynamic leaderScheduleType;
	dynamic leaderScheduleTypeCode;
	int? dutyType = 0;
	String? dutyRoomLandline = '';

	DayInfoListPlanInfo();

	factory DayInfoListPlanInfo.fromJson(Map<String, dynamic> json) => $DayInfoListPlanInfoFromJson(json);

	Map<String, dynamic> toJson() => $DayInfoListPlanInfoToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}